import service from '@/utils/request'

export const getTeamList = (params) => {
    return service({
        url: '/teams/page',
        method: 'get',
        params
    })
}

export const delTeam = (params) => {
    return service({
        url: `/teams/delete/${params}`,
        method: 'delete'
    })
}
export const saveTeam = (data) => {
    return service({
        url: `/teams/save`,
        method: 'post',
        data
    })
}
export const editTeam = (data) => {
    return service({
        url: `/teams/edit`,
        method: 'put',
        data
    })
}
export const getTeamInfo = (params) => {
    return service({
        url: `/teams/${params}`,
        method: 'get'
    })
}
